package com.ning.farm_income_back.mapper;


import com.ning.farm_income_back.domain.Revenue;
import com.ning.farm_income_back.dto.RevenueDto;

import java.util.List;

/**
* @author DELL
* @description 针对表【revenue】的数据库操作Mapper
* @createDate 2025-05-21 14:21:52
* @Entity generator.domain.Revenue
*/
public interface RevenueMapper {

    int deleteByPrimaryKey(Long id);

    int insert(Revenue record);

    int insertSelective(Revenue record);

    Revenue selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Revenue record);

    int updateByPrimaryKey(Revenue record);

    List<String> selectEveryYear(String startY, String endY);

    List<RevenueDto> selectBy(RevenueDto revenueDto);

    String selectTotalByYear(String year);
}
